package com.ruoyi.notice.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 消息中心对象 message
 *
 * @author ruoyi
 * @date 2025-05-14
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String title;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 通知日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "通知日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 是否已读（0未读，1已读） */
    @Excel(name = "是否已读", readConverterExp = "0=未读，1已读")
    private Long read;

    /** 删除状态(默认0，删除1) */
    @Excel(name = "删除状态(默认0，删除1)")
    private Long del;

    /** 商家id */
    @Excel(name = "商家id")
    private Long sid;

    /** 公告通知id */
    @Excel(name = "公告通知id")
    private Long noticeid;

    /** 救援消息uuid */
    @Excel(name = "救援消息uuid")
    private String hid;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUid(Long uid)
    {
        this.uid = uid;
    }

    public Long getUid()
    {
        return uid;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    public void setRead(Long read)
    {
        this.read = read;
    }

    public Long getRead()
    {
        return read;
    }

    public void setDel(Long del)
    {
        this.del = del;
    }

    public Long getDel()
    {
        return del;
    }

    public void setSid(Long sid)
    {
        this.sid = sid;
    }

    public Long getSid()
    {
        return sid;
    }

    public void setNoticeid(Long noticeid)
    {
        this.noticeid = noticeid;
    }

    public Long getNoticeid()
    {
        return noticeid;
    }

    public void setHid(String hid)
    {
        this.hid = hid;
    }

    public String getHid()
    {
        return hid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("uid", getUid())
                .append("title", getTitle())
                .append("content", getContent())
                .append("time", getTime())
                .append("read", getRead())
                .append("del", getDel())
                .append("sid", getSid())
                .append("noticeid", getNoticeid())
                .append("hid", getHid())
                .toString();
    }
}